-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add PHPStan and ensure PHP 8.2 support #2792
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add phpstan with level 2 to the workflow configuration. Plus a baseline configuration.
Workflow configuration is available in master since today. And of course, add PHP 8.2 to the matrix. |
793b763
to
49b6c3f
Compare
ad137cf
to
ebae558
Compare
Please also take a look at the unit test output on PHP 8.1 and 8.2. There are still some deprecations logged. |
ebae558
to
61c3c85
Compare
Dynamic properties are deprecated since PHP 8.2.
Property `$db` is not declared for it to be unset
61c3c85
to
b61c7be
Compare
61f2294
to
f319ebc
Compare
This is because the replaced |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raviks789: good work, thank you! Could you please install the incubator version required in our module.info? If parsing the file annoys you, I'm fine with a hard-coded one for our tests, which can be raised once required.
Testing with unreleased dependencies is a good thing, which could be added as an optional/additional workflow. Main priority should be testing what's going to be installed. This then also removes the requirement to track incubator module dependencies in a second place.
Many thanks
Thomas
The installed incubator version has been introduced by #2309, not here. And this has the same intended effect as the just mentioned change: Testing the current state. If you want a stable test workflow, we should add this separately. Though, only for |
For the Director testing with library versions it will never run with has absolutely no purpose. Here we're testing the current Director state, and not any intermediary foreign library state, that might or might not be released. |
Merged, thank you! |
Dynamic properties are deprecated in PHP 8.2 and must be avoided.